import service from '@/utils/request'

export const useOrderAreasApi = (id: number) => {
	return service.get('/ss/areas/' + id)
}

export const useOrderAreasSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/ss/areas', dataForm)
	} else {
		return service.post('/ss/areas', dataForm)
	}
}